<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<load href="__JS__/jQuery/jquery.js" />
<load href="__JS__/jQuery/jquery.form.js" />
<script type="text/JavaScript">
$(function(){
    $('#form1').ajaxForm({
        //beforeSubmit:  function(){alert("before");},  // pre-submit callback
        success:       complete,  // post-submit callback
        error:function(){alert("error");},
        dataType: 'json'
    });
    
    function complete(data){
        if (data.status==1)
        {
        	window.location=window.location.href;
        }else{
            $('#result').html(data.info).show();
        }
    }
});
</script>
</head>
<body>
<if condition="$role eq '访客'">
	<div id='result'></div>
	<form id='form1' method="post" action="__APP__/Auth/auth">
	<table width="500" border="0" cellpadding="0" cellspacing="0" align="center">
	        <tbody><tr>
	            <td colspan="2">
	                <img src="__IMAGE__/njue3.gif" alt="">
	            </td>
	        </tr>
	        <tr>
	            <td>
	                <img src="__IMAGE__/head2.jpg" alt=""><br>
	                <a href="#">&gt;&gt;访问主页</a><!--主页链接-->
	            </td>
	            <td align="center" width="400">
	                <table width="80%" border="0" cellspacing="0" align="center" cellpadding="2">
	                    <tbody><tr>
	                        <td colspan="2" style="font-weight:700;text-align:center;font-size:11pt;">上海应用技术学院课程中心</td>
	                    </tr>
	                    <tr>
	                        <td width="70px">登录名：</td>
	                        <td><input type="text" name="no" maxlength="20" style="border:1px solid;width:130px" value=""></td>
	                    </tr>
	                    <tr>
	                        <td>密 &nbsp;码：</td>
	                        <td><input type="password" name="password" maxlength="20" style="border:1px solid;width:130px" value=""></td>
	                    </tr>
						
						
	                    <tr colspan="2">
							<td></td>
							<td>
								记住我<input type="checkbox" name=remember>
							</td>
						</tr>
	                    <tr>
	                        <td colspan="2"><input type="submit" class="button" value="登录" style="border:1px solid">
							
							
							</td>
	                    </tr>
	                </tbody></table>
	            </td>
	        </tr>
	        <tr>
	            <td colspan="2">
	                <img src="__IMAGE__/njue2.gif" alt="">
	            </td>
	        </tr>
	    </tbody>
	</table>
	</form>
<else/>	
	<div align="center">
	<h1>已登录：{$role},{$no},{$name} <a href="__APP__/Auth/logout">注销</a></h1>
	<h2><a href="__APP__/index/index">访问主页</a>|<a href="javascript:history.back()">返回登陆前界面</a></h2>
	</div>
</if>
</body>
